#!/bin/sh
TOOLCHAIN=/Users/lixiaomao/android-toolchain/bin/arm-linux-androideabi-
PREFIX=/Users/lixiaomao/Desktop/ffbuild
HOST=armv7-none-linux-androideabi
export CC="${TOOLCHAIN}clang"
export LD="${TOOLCHAIN}ld"
export AR="${TOOLCHAIN}gcc-ar"
export RANLIB="${TOOLCHAIN}gcc-ranlib"
export CXX="${TOOLCHAIN}clang++"
export CFLAGS="-march=armv7-a -D__ANDROID_API__=16"
export CXXFLAGS="-D__ANDROID_API__=16"
export LDFLAGS=""
function build
{
	./configure \
		--prefix=$PREFIX \
		--host=$HOST \
		--build=x86_64-apple-darwin15.6.0
}
build